package cn.hgpu.service.Impl;


import cn.hgpu.domain.News;
import cn.hgpu.mapper.NewsMapper;
import cn.hgpu.service.NewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NewsServiceImpl implements NewsService {

    @Autowired
    private NewsMapper newsMapper;

    public List<News> findAllNews() {

        return newsMapper.findAllNews();
    }

    public int addNews(News news) {
        return newsMapper.addNews(news);
    }
}
